package com.sky.context;

public class BaseContext {
    private static ThreadLocal<Long> threadLocal=new ThreadLocal<>();
    public static void setEmpId(Long  id){
        threadLocal.set(id);
    }
    public static Long getEmpId(){
        Long aLong = threadLocal.get();
        return aLong;
    }
    public static void cleanEmpid(){
        threadLocal.remove();
    }
}
